/*
 * CoordExtractWithMarker.h
 * Created on: 04/04/2011
 * Author: catharine
 */

#ifndef COORDEXTRACTWITHMARKER_H_
#define COORDEXTRACTWITHMARKER_H_

#include "ExtratorDeCampos.h"

class ExtratorDeCamposComMarcadores {
public:
	ExtratorDeCamposComMarcadores();
	virtual ~ExtratorDeCamposComMarcadores();
        Vector <pair<int[4], bool> > encontrarCampos(IplImage* sum);

	void coordinates(IplImage * img, int* horizontalSizes,
			int* horizontalInitial, int* verticalSizes, int* verticalInitial);

private:
	void verticalValues(IplImage * image, int * verticalSizes,
			int * verticalInitial, int vSize);
	void horizontalValues(IplImage * img, int * horizontalSizes,
			int * horizontalInitial, int hSize);
};

#endif /* COORDEXTRACTWITHMARKER_H_ */
